package wcu;
public class CommonUtil {

	public static boolean isNumber(String string){
		try {
			int number = Integer.parseInt(string);
		} catch(Exception e) {
			return false;
		}
		return true;
	}
	
	public static boolean containsNumbers(String string){
		try {
			for(int i = 0; i < 10; i++){
				if (string.contains(Integer.toString(i))){
					return true;
				}
			}
			return false;
		} catch (Exception e){
			System.out.println("Error happened while trying to determine if string contained numbers");
			return false;
		}
	}
}
